Skip to content

BUG: Concatenation warning still appears with sort=False #27702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 4, 2019

Conversation

bongolegend
Copy link
Contributor

@bongolegend bongolegend commented Aug 1, 2019

Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a release note. I think doc/source/whatsnew/v0.25.1.rst is OK.

return res.reindex(self.index, copy=False)
else:
return concat(frames, axis=1, join=how, verify_integrity=True)
return concat(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that this branch is under-tested... Could you update your new test to also assert the result of the concat operation?

@@ -24,6 +24,14 @@ def right():
return DataFrame({"b": [300, 100, 200]}, index=[3, 1, 2])


@pytest.fixture(params=[True, False, None])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps just define this as a pytest.mark.parametrize on the test itself? Since we only use it once that's a bit clearer.

@TomAugspurger TomAugspurger added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Aug 1, 2019
Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than the lint issue.

Co-Authored-By: Tom Augspurger <[email protected]>
@jreback jreback added this to the 0.25.1 milestone Aug 4, 2019
@jreback jreback merged commit d44fb07 into pandas-dev:master Aug 4, 2019
@jreback
Copy link
Contributor

jreback commented Aug 4, 2019

thanks @ncernek

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Aug 4, 2019
@bongolegend bongolegend deleted the 21952-concat-warning branch August 12, 2019 21:24
quintusdias pushed a commit to quintusdias/pandas_dev that referenced this pull request Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Concatenation warning still appears with sort=False
3 participants